static inline void uart_read_line(char * c_array, uint8_t max)
{
	uint8_t i=0;

	while(1)
	{
		c_array[i]=uart_getc();
		if(c_array[i]==13 || i==max)
			{c_array[i]=0; break;}
		else if(c_array[i])
			i++;
	}
}
